package com.yl.drug_management.service.impl;

import com.yl.drug_management.mapper.CronMapper;
import com.yl.drug_management.pojo.Cron;
import com.yl.drug_management.service.CronService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CronServiceImpl implements CronService {

    @Autowired
    CronMapper cronMapper;

    @Override
    public List<Cron> getAllCron() {
        return cronMapper.selectAllCron();
    }

    @Override
    public void addCron(int sid, String cron) {
        cronMapper.insertCron(sid, cron);
    }
}
